package com.llmcu.graphic.designpatterns.command;

import com.llmcu.graphic.designpatterns.command.test.MyButton;
import com.llmcu.graphic.designpatterns.command.test.MyCanvas;
import com.llmcu.graphic.designpatterns.command.test.MyJFrame;

import javax.swing.*;
import java.awt.*;

/**
 * xxxx
 *
 * @author liuling
 * @date 2024/7/20 17:58
 */
public class Main {
    public static void main(String[] args) {
        MyCanvas canvas = new MyCanvas(Color.RED,6,Color.WHITE,800,800);
        MyButton clearButton = new MyButton("clear");
        JFrame frame = new MemoryDrawFrame(canvas,clearButton,"画板");
    }
}
